$(function(){
    //菜单点击
    J_iframe
    $(".J_menuItem").on('click',function(){
        var url = $(this).attr('href');
        $("#J_iframe").attr('src',url);

        console.log(this.innerText);
        $(".navbar-header-title").text(this.innerText);

        return false;
    });
});

function reinitIframe() {
    var iframe = document.getElementById("J_iframe");
    try
    {
        var bHeight = iframe.contentWindow.document.body.scrollHeight;
        /*
        var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
        var height = Math.max(bHeight, dHeight);
        iframe.height = height; */
        iframe.height = bHeight;
    }
    catch (ex) { }
}